#ifndef BALL_H
#define BALL_H
#include"stock.h"

class Ball
{
public:
    Ball();
    ~Ball();


    QRect* ball;//ball in MC
    bool has_shot;
    double direct;
    int x;
    int y;
    bool m_intersects(int xx,int yy);


    void inite_ball();//新增
    void switch_direct_brick(int xx,int yy);
    void switch_direct3(QRect *player);//和板碰撞



    void move();
    void moveto(int i);
    double getdir();


};

#endif // BALL_H
